package website.seamonster.ethegg.conf;

import java.math.BigDecimal;

/**
 * Created by 罗海量
 * 2018-07-21 18:00
 */
@lombok.extern.slf4j.Slf4j
public class SystemConfig {
    public static final BigDecimal SERVICE_FEE_PERCENTAGE = new BigDecimal("0.3");
    public static final BigDecimal SELLER_INCOME_PERCENTAGE = new BigDecimal("0.7");
    public static final BigDecimal SERVICE_FEE_PR_PERCENTAGE = new BigDecimal("0.22");
    public static final BigDecimal PR_INCOME_PERCENTAGE = new BigDecimal("0.08");

    //当一只蛋是系统产生的初代蛋时，该蛋的User Id是：
    public static final String SYS_USER_ID = "0";
    //当一只蛋是系统产生的初代蛋时，该蛋的Chicken Id是：
    public static final Long SYS_CHICKEN_ID = 0L;
    //最大孵化圈（鸡）的数目
    public static final int MAX_HATCH_LIMIT = 99;
    //一只鸡最大生蛋数
    public static final int MAX_BORN_EGG_NUM = 4;
    //1只蛋多少毫秒后变成鸡
    public static final long EGG_TO_CHICKEN_MILLSECONDS = 5000L;
    //第一批蛋的价格
    public static final BigDecimal ALAPHA_PRICE = new BigDecimal("0.9");

    //检查新交易间隔毫秒数
    public static final long CHECK_TX_PER_MILLSECONDS = 5000L;

    //检查出块间隔毫秒数
    public static final long CHECK_BLOCK_PER_MILLSECONDS = 15000L;

    public static final String FAIL_ID_STRING = "-1";
    public static final long FAIL_ID_LONG = -1L;

}
